﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace BaseDeDatos.Exceptions
{
    [Serializable]
    public class BDException : ApplicationException
    {

        public BDException()
            : base("Ocurrio un error en la base de datos")
        {
            // Add implementation.
        }
        public BDException(String message)
            : base(message)
        {
            // Add implementation.
        }
        public BDException(String message, Exception inner)
            : base(message)
        {
            // Add implementation.
        }

        // This constructor is needed for serialization.
        protected BDException(SerializationInfo info, StreamingContext context)
        {
            // Add implementation.
        }
    }
}
